package yunwo.cn.yzstation.api.okapi;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;
import yunwo.cn.yzstation.bean.Bean;
import yunwo.cn.yzstation.bean.RegistBean;

/**
 * Created by lao on 2017/9/6.
 */

public abstract class RegistCall extends Callback<RegistBean> {

    @Override
    public RegistBean parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        RegistBean bean = new Gson().fromJson(string, RegistBean.class);
        return bean;
    }
}
